import React, { PureComponent } from 'react'
import { View } from '@tarojs/components'
import './DecisionCardPlaceholder.scss'

export default class DecisionCardPlaceholder extends PureComponent {
  render() {
    const { count = 1, style = {} } = this.props
    return [...Array(count)].map((item, index) => (
      <View className="decisionCardPlaceholder" style={style} key={index.toString()}>
        <View className="row skeleton-blink" />
        <View className="row row-half skeleton-blink" />
        <View className="row row-half skeleton-blink" />
      </View>
    ))
  }
}
